﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Policlinica
{
    public class Vaccina : BusinessObjectBase
    {
        private DateTime _vacDate;
        private string _name;
        private Patient _Patient;      

        public Vaccina()
        {
            this._Patient = default(Patient);
        }

        public Vaccina(int id, bool isDeleted, DateTime vacDate, string name, Patient patient):base(id, isDeleted)
        {
            _vacDate = vacDate;
            _name = name;
            _Patient = patient;
        }

        public Vaccina(DateTime vacDate, string name, Patient patient)
        {
            _vacDate = vacDate;
            _name = name;
            _Patient = patient;
        }


        public DateTime VacDate
        {
            get
            {
                return this._vacDate;
            }
            set
            {
                if ((this._vacDate != value))
                {
                    this._vacDate = value;
                }
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                if ((this._name != value))
                {
                    this._name = value;
                }
            }
        }


        public Patient Patient
        {
            get
            {
                return this._Patient;
            }
            set
            {
                Patient previousValue = this._Patient;
                if (previousValue != value)
                {
                    this._Patient = value;
                    
                }
            }
        }

       
    }
	
}
